/**
 * 
 */
package com.worksmap.core.action.system;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.worksmap.core.action.BaseController;

/**
 * 访问项目主页index.jsp
 * 系统管理员主页必须登录后可见
 * web.xml配置拦截器验证是否登录
 * @author jack
 * 2013.7.5
 */
@Controller
@RequestMapping(value = "/system")
public class SystemIndexController extends BaseController {
	
	/**
	 * 访问http://127.0.0.1/system   
	 * 初始页面默认到项目主页
	 * jack
	 * 2013-7-5
	 */
	@RequestMapping(value = "", method = RequestMethod.GET)
	public String index(HttpServletRequest request){
		logger.info("站点根目录访问跳转到系统管理员主页.");
		return getIndex();
	}
	
	private String getIndex(){
		return "system/index";
//		return "manage/login_system";
	}

}
